package lzk.myshop.controller;


import lzk.myshop.Util.NewGoods;
import lzk.myshop.service.impl.TencentImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;


@RestController
@CrossOrigin(origins = "*")
@RequestMapping("/cloud")
public class TencentController {
    @Autowired
    TencentImpl tencent;

    @PostMapping("/addGoods")
    public Map<String,Object> newGoods(NewGoods newGoods) throws IOException {
        return tencent.newGoods(newGoods);
    }
}
